Integrand size = 29, antiderivative size = 233 \[ \int \frac {(e+f x) \text {sech}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=\frac {3 (e+f x) \arctan \left (e^{c+d x}\right )}{4 a d}-\frac {3 i f \operatorname {PolyLog}\left (2,-i e^{c+d x}\right )}{8 a d^2}+\frac {3 i f \operatorname {PolyLog}\left (2,i e^{c+d x}\right )}{8 a d^2}+\frac {3 f \text {sech}(c+d x)}{8 a d^2}+\frac {f \text {sech}^3(c+d x)}{12 a d^2}+\frac {i (e+f x) \text {sech}^4(c+d x)}{4 a d}-\frac {i f \tanh (c+d x)}{4 a d^2}+\frac {3 (e+f x) \text {sech}(c+d x) \tanh (c+d x)}{8 a d}+\frac {(e+f x) \text {sech}^3(c+d x) \tanh (c+d x)}{4 a d}+\frac {i f \tanh ^3(c+d x)}{12 a d^2} \]
[Out]
Time = 0.14 (sec) , antiderivative size = 233, normalized size of antiderivative = 1.00, number of steps used = 11, number of rules used = 7, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.241, Rules used = {5690, 4270, 4265, 2317, 2438, 5559, 3852} \[ \int \frac {(e+f x) \text {sech}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=\frac {3 (e+f x) \arctan \left (e^{c+d x}\right )}{4 a d}-\frac {3 i f \operatorname {PolyLog}\left (2,-i e^{c+d x}\right )}{8 a d^2}+\frac {3 i f \operatorname {PolyLog}\left (2,i e^{c+d x}\right )}{8 a d^2}+\frac {i f \tanh ^3(c+d x)}{12 a d^2}-\frac {i f \tanh (c+d x)}{4 a d^2}+\frac {f \text {sech}^3(c+d x)}{12 a d^2}+\frac {3 f \text {sech}(c+d x)}{8 a d^2}+\frac {i (e+f x) \text {sech}^4(c+d x)}{4 a d}+\frac {(e+f x) \tanh (c+d x) \text {sech}^3(c+d x)}{4 a d}+\frac {3 (e+f x) \tanh (c+d x) \text {sech}(c+d x)}{8 a d} \]
[In]
[Out]
Rule 2317
Rule 2438
Rule 3852
Rule 4265
Rule 4270
Rule 5559
Rule 5690
Rubi steps \begin{align*} \text {integral}& = -\frac {i \int (e+f x) \text {sech}^4(c+d x) \tanh (c+d x) \, dx}{a}+\frac {\int (e+f x) \text {sech}^5(c+d x) \, dx}{a} \\ & = \frac {f \text {sech}^3(c+d x)}{12 a d^2}+\frac {i (e+f x) \text {sech}^4(c+d x)}{4 a d}+\frac {(e+f x) \text {sech}^3(c+d x) \tanh (c+d x)}{4 a d}+\frac {3 \int (e+f x) \text {sech}^3(c+d x) \, dx}{4 a}-\frac {(i f) \int \text {sech}^4(c+d x) \, dx}{4 a d} \\ & = \frac {3 f \text {sech}(c+d x)}{8 a d^2}+\frac {f \text {sech}^3(c+d x)}{12 a d^2}+\frac {i (e+f x) \text {sech}^4(c+d x)}{4 a d}+\frac {3 (e+f x) \text {sech}(c+d x) \tanh (c+d x)}{8 a d}+\frac {(e+f x) \text {sech}^3(c+d x) \tanh (c+d x)}{4 a d}+\frac {3 \int (e+f x) \text {sech}(c+d x) \, dx}{8 a}+\frac {f \text {Subst}\left (\int \left (1+x^2\right ) \, dx,x,-i \tanh (c+d x)\right )}{4 a d^2} \\ & = \frac {3 (e+f x) \arctan \left (e^{c+d x}\right )}{4 a d}+\frac {3 f \text {sech}(c+d x)}{8 a d^2}+\frac {f \text {sech}^3(c+d x)}{12 a d^2}+\frac {i (e+f x) \text {sech}^4(c+d x)}{4 a d}-\frac {i f \tanh (c+d x)}{4 a d^2}+\frac {3 (e+f x) \text {sech}(c+d x) \tanh (c+d x)}{8 a d}+\frac {(e+f x) \text {sech}^3(c+d x) \tanh (c+d x)}{4 a d}+\frac {i f \tanh ^3(c+d x)}{12 a d^2}-\frac {(3 i f) \int \log \left (1-i e^{c+d x}\right ) \, dx}{8 a d}+\frac {(3 i f) \int \log \left (1+i e^{c+d x}\right ) \, dx}{8 a d} \\ & = \frac {3 (e+f x) \arctan \left (e^{c+d x}\right )}{4 a d}+\frac {3 f \text {sech}(c+d x)}{8 a d^2}+\frac {f \text {sech}^3(c+d x)}{12 a d^2}+\frac {i (e+f x) \text {sech}^4(c+d x)}{4 a d}-\frac {i f \tanh (c+d x)}{4 a d^2}+\frac {3 (e+f x) \text {sech}(c+d x) \tanh (c+d x)}{8 a d}+\frac {(e+f x) \text {sech}^3(c+d x) \tanh (c+d x)}{4 a d}+\frac {i f \tanh ^3(c+d x)}{12 a d^2}-\frac {(3 i f) \text {Subst}\left (\int \frac {\log (1-i x)}{x} \, dx,x,e^{c+d x}\right )}{8 a d^2}+\frac {(3 i f) \text {Subst}\left (\int \frac {\log (1+i x)}{x} \, dx,x,e^{c+d x}\right )}{8 a d^2} \\ & = \frac {3 (e+f x) \arctan \left (e^{c+d x}\right )}{4 a d}-\frac {3 i f \operatorname {PolyLog}\left (2,-i e^{c+d x}\right )}{8 a d^2}+\frac {3 i f \operatorname {PolyLog}\left (2,i e^{c+d x}\right )}{8 a d^2}+\frac {3 f \text {sech}(c+d x)}{8 a d^2}+\frac {f \text {sech}^3(c+d x)}{12 a d^2}+\frac {i (e+f x) \text {sech}^4(c+d x)}{4 a d}-\frac {i f \tanh (c+d x)}{4 a d^2}+\frac {3 (e+f x) \text {sech}(c+d x) \tanh (c+d x)}{8 a d}+\frac {(e+f x) \text {sech}^3(c+d x) \tanh (c+d x)}{4 a d}+\frac {i f \tanh ^3(c+d x)}{12 a d^2} \\ \end{align*}
Both result and optimal contain complex but leaf count is larger than twice the leaf count of optimal. \(617\) vs. \(2(233)=466\).
Time = 4.02 (sec) , antiderivative size = 617, normalized size of antiderivative = 2.65 \[ \int \frac {(e+f x) \text {sech}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=\frac {2 (f+6 i d (e+f x))+\frac {6 i d (e+f x)}{\left (\cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right )^2}-9 (c+d x) (c f-d (2 e+f x)) \left (\cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right )^2-(9-9 i) \left (\frac {1}{2} d^2 f x^2+d e (c+d x)-(1-i) (d e-c f) (c+d x)+(1-i) f (c+d x) \log \left (1+i e^{-c-d x}\right )+(1-i) (d e-c f) \log \left (i+e^{c+d x}\right )-(1-i) f \operatorname {PolyLog}\left (2,-i e^{-c-d x}\right )\right ) \left (\cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right )^2-(9+9 i) \left (\frac {1}{2} d^2 f x^2+d e (c+d x)-(1+i) (d e-c f) (c+d x)+(1+i) f (c+d x) \log \left (1-i e^{-c-d x}\right )+(1+i) (d e-c f) \log \left (i-e^{c+d x}\right )-(1+i) f \operatorname {PolyLog}\left (2,i e^{-c-d x}\right )\right ) \left (\cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right )^2-\frac {6 i d (e+f x) \left (\cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right )^2}{\left (\cosh \left (\frac {1}{2} (c+d x)\right )-i \sinh \left (\frac {1}{2} (c+d x)\right )\right )^2}-\frac {4 i f \sinh \left (\frac {1}{2} (c+d x)\right )}{\cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )}+\frac {12 i f \left (\cosh \left (\frac {1}{2} (c+d x)\right )+i \sinh \left (\frac {1}{2} (c+d x)\right )\right )^2 \sinh \left (\frac {1}{2} (c+d x)\right )}{\cosh \left (\frac {1}{2} (c+d x)\right )-i \sinh \left (\frac {1}{2} (c+d x)\right )}+28 f \sinh \left (\frac {1}{2} (c+d x)\right ) \left (-i \cosh \left (\frac {1}{2} (c+d x)\right )+\sinh \left (\frac {1}{2} (c+d x)\right )\right )}{48 d^2 (a+i a \sinh (c+d x))} \]
[In]
[Out]
Time = 25.57 (sec) , antiderivative size = 396, normalized size of antiderivative = 1.70
method | result | size |
risch | \(\frac {9 d f x \,{\mathrm e}^{5 d x +5 c}+6 d e \,{\mathrm e}^{3 d x +3 c}-18 i d e \,{\mathrm e}^{4 d x +4 c}+9 d e \,{\mathrm e}^{5 d x +5 c}-18 i d f x \,{\mathrm e}^{4 d x +4 c}-22 i f \,{\mathrm e}^{2 d x +2 c}+9 d e \,{\mathrm e}^{d x +c}-18 i f \,{\mathrm e}^{4 d x +4 c}-4 i f +6 d f x \,{\mathrm e}^{3 d x +3 c}+18 i d e \,{\mathrm e}^{2 d x +2 c}+18 i d f x \,{\mathrm e}^{2 d x +2 c}+9 d f x \,{\mathrm e}^{d x +c}+9 f \,{\mathrm e}^{5 d x +5 c}+8 f \,{\mathrm e}^{3 d x +3 c}-f \,{\mathrm e}^{d x +c}}{12 \left ({\mathrm e}^{d x +c}+i\right )^{2} \left ({\mathrm e}^{d x +c}-i\right )^{4} d^{2} a}+\frac {3 e \arctan \left ({\mathrm e}^{d x +c}\right )}{4 d a}+\frac {3 i f \ln \left (1-i {\mathrm e}^{d x +c}\right ) x}{8 d a}+\frac {3 i f \ln \left (1-i {\mathrm e}^{d x +c}\right ) c}{8 d^{2} a}+\frac {3 i f \operatorname {polylog}\left (2, i {\mathrm e}^{d x +c}\right )}{8 a \,d^{2}}-\frac {3 i f \ln \left (1+i {\mathrm e}^{d x +c}\right ) x}{8 d a}-\frac {3 i f \ln \left (1+i {\mathrm e}^{d x +c}\right ) c}{8 d^{2} a}-\frac {3 i f \operatorname {polylog}\left (2, -i {\mathrm e}^{d x +c}\right )}{8 a \,d^{2}}-\frac {3 f c \arctan \left ({\mathrm e}^{d x +c}\right )}{4 d^{2} a}\) | \(396\) |
[In]
[Out]
Both result and optimal contain complex but leaf count of result is larger than twice the leaf count of optimal. 917 vs. \(2 (197) = 394\).
Time = 0.27 (sec) , antiderivative size = 917, normalized size of antiderivative = 3.94 \[ \int \frac {(e+f x) \text {sech}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=\text {Too large to display} \]
[In]
[Out]
\[ \int \frac {(e+f x) \text {sech}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=- \frac {i \left (\int \frac {e \operatorname {sech}^{3}{\left (c + d x \right )}}{\sinh {\left (c + d x \right )} - i}\, dx + \int \frac {f x \operatorname {sech}^{3}{\left (c + d x \right )}}{\sinh {\left (c + d x \right )} - i}\, dx\right )}{a} \]
[In]
[Out]
Exception generated. \[ \int \frac {(e+f x) \text {sech}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=\text {Exception raised: RuntimeError} \]
[In]
[Out]
\[ \int \frac {(e+f x) \text {sech}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=\int { \frac {{\left (f x + e\right )} \operatorname {sech}\left (d x + c\right )^{3}}{i \, a \sinh \left (d x + c\right ) + a} \,d x } \]
[In]
[Out]
Timed out. \[ \int \frac {(e+f x) \text {sech}^3(c+d x)}{a+i a \sinh (c+d x)} \, dx=\int \frac {e+f\,x}{{\mathrm {cosh}\left (c+d\,x\right )}^3\,\left (a+a\,\mathrm {sinh}\left (c+d\,x\right )\,1{}\mathrm {i}\right )} \,d x \]
[In]
[Out]